package com.ant.backstage.facade.request.registerLogin;

import com.ant.backstage.utils.validation.inter.CheckPwd;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Validated
public class UserLoginRequest  implements Serializable {

    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(required = true, value = "用户名不能为空", example = "zhangyu01")
    private String uname;

    @CheckPwd
    @ApiModelProperty(required = true, value = "登录密码", example = "123456")
    private String pwd;

}
